-
Notifications
You must be signed in to change notification settings - Fork 24
Add support for lineLimit(_ limit: Int, reservesSpace: Bool) #161
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for lineLimit(_ limit: Int, reservesSpace: Bool) #161
Conversation
ec47d91
to
44699f6
Compare
44699f6
to
8cd4871
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Will take a look in the next couple days when I finish my current task. Off the bat, looks great, but I think I'd prefer to put lineLimit and reservesSpace together into a single Tuple (Pair in Kotlin) in the Environment. I try to group things together when it makes sense because I worry that eventually we're going to see a perf drag from so many Environment lookups
I think a Tuple might be nicer, but I'm not sure it would make sense here, because https://developer.apple.com/documentation/swiftui/environmentvalues/linelimit The current released version of SkipUI can honor the And if we don't change the type, then we just have to have a second environment variable. (Right?) |
Ah, I didn't notice that lineLimit is one of the exposed environment values. In that case you're absolutely right to keep them separate |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One request, otherwise looks good!
8cd4871
to
f63088c
Compare
A couple of months later, I've resolved feedback; I think this is now ready to merge. |
Looks great, thanks! |
https://developer.apple.com/documentation/swiftui/view/linelimit(_:reservesspace:)
I've tested it with skiptools/skipapp-showcase#27 where it works on both Android and iOS.
swift test